<div class="layui-col-md12">
    <div class="layui-card">
        <div class="layui-card-body">
            <form class="layui-form">
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"><i class="red margin-right-4">*</i>姓名：</label>
                        <div class="layui-input-block">
                            <input type="text" name="RealName" lay-verify="required"
                                   lay-verType="tips"
                                   placeholder="输入使用者的姓名，不超过32个字符" autocomplete="off" class="layui-input"
                                   value="@{{ .m.RealName }}" maxlength="32">
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"><i class="red margin-right-4">*</i>姓名：</label>
                        <div class="layui-input-block">
                            <input type="text" name="UserName" lay-verify="required"
                                   lay-verType="tips"
                                   placeholder="输入使用者的姓名，不超过24个字符" autocomplete="off" class="layui-input"
                                   value="@{{ .m.UserName }}" maxlength="24">
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"><i class="red margin-right-4">*</i>邮箱：</label>
                        <div class="layui-input-block">
                            <input type="text" name="Email" lay-verify="email" lay-verType="tips"
                                   placeholder="邮箱地址将作为登录系统的账号名，字符不限" autocomplete="off" class="layui-input"
                                   value="@{{ .m.Email }}">
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"><i class="red margin-right-4">*</i>手机号：</label>
                        <div class="layui-input-block">
                            <input type="text" name="Mobile" lay-verify="phone" lay-verType="tips"
                                   placeholder="输入使用者的11位手机号码" autocomplete="off" class="layui-input"
                                   value="@{{ .m.Mobile }}" maxlength="11">
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label">密码：</label>
                        <div class="layui-input-block">
                            <input type="password" name="UserPwd" placeholder="8~16个字符，区分大小写" autocomplete="off"
                                   class="layui-input"
                                   maxlength="16">
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label">IC卡号：</label>
                        <div class="layui-input-block">
                            <input type="text" name="ICCode" placeholder="输入报关员的IC卡号"
                                   autocomplete="off" class="layui-input" value="@{{ .m.ICCode }}">
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"><i class="red margin-right-4">*</i>是否超级管理员：</label>
                        <div class="layui-input-block">
                            <select name="IsSuper" lay-verify="required" lay-vertype="tips">
                                @{{ if eq .m.IsSuper true }}
                            <option selected value="1">是</option>
                            @{{ else }}
                            <option value="1">是</option>
                            @{{ end }}

                                @{{ if eq .m.IsSuper false }}
                            <option selected value="1">否</option>
                            @{{ else }}
                            <option value="0">否</option>
                            @{{ end }}

                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"><i class="red margin-right-4">*</i>状态：</label>
                        <div class="layui-input-block">
                            <select name="Status" lay-verify="required" lay-vertype="tips">
                                @{{ if eq .m.Status true }}
                            <option selected value="1">启用</option>
                            @{{ else}}
                            <option value="1">启用</option>
                            @{{ end }}

                                @{{ if eq .m.Status false }}
                            <option selected value="1">禁用</option>
                            @{{ else }}
                            <option value="0">禁用</option>
                            @{{ end }}

                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space10 layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"><i class="red margin-right-4">*</i>选择角色：</label>
                        <div class="layui-input-block">
                            <select name="RoleIds" xm-select="RoleIds" xm-select-skin="normal" lay-verify="required" lay-vertype="tips">
                                <option value="">选择角色</option>
                                @{{ range $index, $role := .roles }}
                                    @{{if inArray $role.Id  $.m.RoleIds }}
                                    <option selected value="@{{ $role.Id }}">@{{ $role.Name }}</option>
                                    @{{ else }}
                                    <option value="@{{ $role.Id }}">@{{ $role.Name }}</option>
                                    @{{ end }}
                                @{{ end }}
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn custom-create_btn" lay-submit lay-filter="user_submit" type="button">
                            提交
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
